import React from 'react';
import { connect } from 'dva';
import styles from './liveIndex.css';

import UserComponent from '../../components/User/Index.js'

function User() {
  return (
    <div className={styles.normal}>
      1123
    </div>
  );
}

// function mapStateToProps() {
//   return {};
// }
//
// export default connect(mapStateToProps)(User);

function liveIndex(props) {
  return (
    <div className={styles.normal}>

     <UserComponent {...props}/>

    </div>
  );
}

function mapStateToProps(state) {
  return {
    user:state.user
  };
}

export default connect(mapStateToProps)(liveIndex);
